<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<!--注:在这里直接使用/<script src="jquery-3.7.1.js"></script>也是可以但是会出现各种无法预判的错误-->
<script th:src="@{jquery-3.7.1.js}" type="application/javascript"></script>
<body>
<!--<h1>aaaaaaaaaaaa</h1>-->
<span th:text="${msg}"></span>
<div>
    <p th:each="user,inserd:${userList}">
        <span th:text="${user.id}"></span>
        <span th:text="${user.name}"></span>
        <span th:text="${user.sex}"></span>
        <span th:text="${user.age}"></span>
        <span th:if="${user.id==1}">if的显示</span>
        <span th:if="${user.id}==2">if的显示</span>
    </p>
</div>


<div>
    <p>today<span th:text="2024"></span>年</p>
    <p>20年后是：<span th:text="2024+20"></span>年</p>
</div>

</body>
</html>